-- GENERATED SPELL FOR [Alarmed Blightguard] --


function spell0_28745(pUnit, Event) --@Invisibility,Self--
pUnit:FullCastSpellOnTarget(52060,pUnit)
pUnit:RegisterEvent('Sorts_28745', 678, 1)
end

function Sorts_28745(pUnit, Event)
local choix_sorts_28745 = math.random(0, 0)
if choix_sorts_28745 == 0 then
pUnit:RegisterEvent('spell0_28745', 1, 1)
end
end

function mob28745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28745', math.random(1500, 3000), 1)
end

function mob28745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28745, 1, 'mob28745_Action')
RegisterUnitEvent(28745, 2, 'mob28745_Leave')
RegisterUnitEvent(28745, 3, 'mob28745_Kill')
RegisterUnitEvent(28745, 4, 'mob28745_Die')
